package com.nb.pojo;

public class Emp {
    private int no;
    private String name;
    private Dept dept;

    public Emp() {
    }

    public Emp(int no, String name) {
        this.no = no;
        this.name = name;
    }

    public Emp(int no, String name, Dept dept) {
        this.no = no;
        this.name = name;
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", dept=" + dept +
                '}';
    }
}
